package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商品规格属性名mapper层
 */
@Mapper
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    List<BaseAttrInfo> selectBaseAttrInfoList(@Param("category1Id")Long category1Id,@Param("category2Id") Long category2Id,@Param("category3Id")Long category3Id);

    /**
     * 根据sku的id查询平台属性信息
     * @param skuId
     * @return
     */
    public List<BaseAttrInfo> selectBaseAttrInfoBySku(@Param("skuId")Long skuId);
}
